/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package evidence.view.pomocneTridy;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Protheo
 */
public class MyFileFilter extends FileFilter {

    @Override
    public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;
        }
        String pripona = Util.getExtension(f);
        if (pripona != null){
            if (pripona.equals(Util.EVIDENCE)){
                return true;
            }
        }
        return false;
    }

    @Override
    public String getDescription() {
        return "Evidence file: *.evi";
    }
}
